// pages/schAdmin/schAdmin.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    rotate:false,
    r2: false,
    r3: false,
    r4: false,
    r5: false,
    hiddenModal1: true,
    hiddenModal2: true,
    hiddenModal3: true,
    hiddenModal4: true,
    hiddenModal5: true,
    corInfo: {
      community_name: '',
      president_open_id: '',
      sch_id: null,
      tag_1: '',
      tag_2: '',
      tag_3: '',
      tag_4: '',
      tag_5: '',
      tag_6: '',
      community_avatar: null
    },
    
    tag_array: ['   无  ', '体育', '音乐', '阅读', '文艺', '娱乐'],
    tag1_index: 0,
    tag2_index: 0,
    tag3_index: 0,
    tag4_index: 0,
    tag5_index: 0,
    tag6_index: 0,
    

  },
  turn: function (e) {
  
      this.setData({
        rotate: true,
      });
      setTimeout(this.show2,500);
      setTimeout(this.show3, 1000);
      setTimeout(this.show4, 1500);
      setTimeout(this.show5, 2000);
  
  },

  show2: function(){
     this.setData({
       r2:true,
     })

  },
  show3: function () {
    this.setData({
      r3: true,
    })

  },
  show4: function () {
    this.setData({
      r4: true,
    })

  },
  show5: function () {
    this.setData({
      r5: true,
    })

  },
  listenerButton1: function () {
    this.setData({
      hiddenModal1: !this.data.hiddenModal1
    })
  },

  listenerConfirm1: function () {
    this.setData({
      hiddenModal1: true
    })
  },

  listenerCancel1: function () {
    this.setData({
      hiddenModal1: true
    })
  },
  listenerButton2: function () {
    this.setData({
      hiddenModal2: !this.data.hiddenModal2
    })
  },

  listenerConfirm2: function () {
    this.setData({
      hiddenModal2: true
    })
  },

  listenerCancel2: function () {
    this.setData({
      hiddenModal2: true
    })
  },

  listenerButton3: function () {
    this.setData({
      hiddenModal3: !this.data.hiddenModal3
    })
  },

  listenerConfirm3: function () {
    this.setData({
      hiddenModal3: true
    })
  },

  listenerCancel3: function () {
    this.setData({
      hiddenModal3: true
    })
  },

  listenerButton4: function () {
    this.setData({
      hiddenModal4: !this.data.hiddenModal4
    })
  },

  listenerConfirm4: function () {
    this.setData({
      hiddenModal4: true
    })
  },

  listenerCancel4: function () {
    this.setData({
      hiddenModal4: true
    })
  },
  listenerButton5: function () {
    this.setData({
      hiddenModal5: !this.data.hiddenModal5
    })
  },
  listenerConfirm5: function () {
    this.setData({
      hiddenModal5: true
    })
  },

  listenerCancel5: function () {
    this.setData({
      hiddenModal5: true
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    setTimeout(this.turn, 500);
  },
  bindPickerChange3_1: function (e) {
    var that = this;
    console.log('picker发送选择改变，携带值为', e.detail.value);
    this.setData({
      tag1_index: e.detail.value,
    });
  },
  bindPickerChange3_2: function (e) {
    var that = this;
    console.log('picker发送选择改变，携带值为', e.detail.value);
    this.setData({
      tag2_index: e.detail.value
    });
  },
  bindPickerChange3_3: function (e) {
    var that = this;
    console.log('picker发送选择改变，携带值为', e.detail.value);
    this.setData({
      tag3_index: e.detail.value
    });
  },
  bindPickerChange3_4: function (e) {
    var that = this;
    console.log('picker发送选择改变，携带值为', e.detail.value);
    this.setData({
      tag4_index: e.detail.value
    });
  },
  bindPickerChange3_5: function (e) {
    var that = this;
    console.log('picker发送选择改变，携带值为', e.detail.value);
    this.setData({
      tag5_index: e.detail.value
    });
  },
  bindPickerChange3_6: function (e) {
    var that = this;
    console.log('picker发送选择改变，携带值为', e.detail.value);
    this.setData({
      tag6_index: e.detail.value
    });
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})